﻿using System.Collections.Concurrent;
using AntQuartzUI.Services.Dtos;
using Quartz;

namespace AntQuartzUI.Services;

public interface IQuartzService
{
    public ConcurrentDictionary<TriggerKey, int> FireCountsDic { get; set; }
    
    public ConcurrentDictionary<TriggerKey, int> VetoCountsDic { get; set; }
    
    Task<List<JobStatusDto>> GetAllJobStatusesAsync();

    public Task PauseTriggerAsync(string name, string group);

    public Task StartTriggerAsync(string name, string group);
}